package com.li.model;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor

public class User implements Serializable {
    private long id;
    @NotNull
    private String username;
    @NotNull
    private String password;
    private int grade;
    private Date createTime;
    private int vipTime;
    private String email;
    private String gender;
    private Date lastLogin;
    private int isDeleted;
}
